<template>
  <div id="app">

    <van-tabbar route>
      <!-- <van-tabbar-item to="/article" icon="gem-o">申请</van-tabbar-item> -->
      <van-tabbar-item to="/home" icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/infomation" icon="newspaper-o">校园动态</van-tabbar-item>
      <van-tabbar-item to="/apply" icon="gem-o">申请</van-tabbar-item>
      <!-- <van-tabbar-item to="/collect" icon="star-o">审批</van-tabbar-item> -->
      <van-tabbar-item to="/record" icon="orders-o">申请记录</van-tabbar-item>
      <van-tabbar-item to="/user" icon="user-circle-o">我的</van-tabbar-item>
    </van-tabbar>

    <router-view/>
  </div>
</template>

<script>
/* eslint-disable */ 
import request from '@/utils/request'
import { setToken } from '@/utils/storage'
export default {
  data () {
    return {
      value: '123',
      showKeyboard: true
    }
  },
  methods: {
    async btnClick () {
      // const res = await request.post('/user/register', {
      //   username: 'shuaipeng864615318185',
      //   password: '123456'

      // })
      const res = await request.post('/user/login', {
        username: 'shuaipeng864615318185',
        password: '123456'

      })
      // console.log(res.data.token)
      setToken(res.data.token)
    }
  }
}
</script>

<style lang="less">
  .text{
    width: 200px;
    height: 120px;
    background-color: yellow;
  }
  .btn{
    width: 80px;
    height: 50px;
  }
</style>
